package com.zhiyou100.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.ProjectMapper;
import com.zhiyou100.model.PublishTheProject;
import com.zhiyou100.service.ProjectsServcie;

@Service
public class ProjectServiceImpl implements ProjectsServcie{

	@Autowired
	private ProjectMapper projectMapper;
	
	@Override
	public List<PublishTheProject> list(Map<String, Object> map) {
		
		return projectMapper.list(map);
	}

	@Override
	public PublishTheProject pdetail(int id) {
		
		return projectMapper.detail(id);
	}

	@Override
	public void updateProject(PublishTheProject project) {
		projectMapper.updateMapper(project);
	}

	@Override
	public void deletProject(int id) {
		projectMapper.deletProject(id);
	}

	

}
